package com.lkd.mapper;

import com.lkd.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleMapper {

    @Select("select * from tb_role")
    List<Role> findList();

    @Select("select * from tb_role where role_id = #{roleId}")
    Role findByRoleId(Integer roleId);

}
